# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

_pkgname=tox-current-env
pkgname=python-$_pkgname
pkgver=0.0.11
pkgrel=2
pkgdesc='tox plugin to run tests in current Python environment'
arch=('any')
url='https://github.com/fedora-python/tox-current-env'
license=('MIT')
depends=('python' 'python-tox')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('f4bfba1fec6f38668e94b1e9918c8749e19527d50279e1a100ad154cbb30b8bdb1edfd139020e9c8afa174d237bf81f33539b01d0050ec0649a4ff130040272b')

build() {
  cd $_pkgname-$pkgver

  python -m build -nw
}

package() {
  cd $_pkgname-$pkgver

  python -m installer -d "$pkgdir" dist/*.whl

  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et:
